home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 7 / 007.d81 / rem tip < prev    next >
Text File  |  2022-08-26  |  1KB  |  89 lines

  1. Harken, hackers!
  2.  
  3.  
  4. We all know what a pain it is to keep
  5.  
  6. track of a series of revisions of a
  7.  
  8. single program.  Here's a tip that
  9.  
  10. will automate the process:
  11.  
  12.  
  13. Always make line 0 of your program
  14.  
  15. a REM statement containing the
  16.  
  17. statement required to save the
  18.  
  19. program.
  20.  
  21. Like this:
  22.  
  23. 0 REM SAVE"0:HARKEN V1",8
  24.  
  25. Then when it's time to save a new
  26.  
  27. version, change the version number in
  28.  
  29. the REM, DEL the '0 REM' part and
  30.  
  31. press return.
  32.  
  33. The advantages:  Your program always
  34.  
  35. matches its name in the directory.
  36.  
  37. You never have to load a directory to
  38.  
  39. see what version you should save the
  40.  
  41. program as THIS time.  Your programs
  42.  
  43. will be numbered in sequence, without
  44.  
  45. gaps.
  46.  
  47.   And if you forget to change the REM
  48.  
  49. the only ill effect will be a FILE
  50.  
  51. EXISTS error.  Don't use the
  52.  
  53. SAVE"@0:HARKEN V4",8 syntax, because
  54.  
  55. SAVE AND REPLACE would eliminate any
  56.  
  57. advantage gained by this technique.
  58.  
  59.  
  60.   We at LOADSTAR have learned from
  61.  
  62. bitter experience that you should
  63.  
  64. ALWAYS keep EVERY version of a program
  65.  
  66. (carefully numbered so you can tell
  67.  
  68. them apart) until you finish your
  69.  
  70. development work.  You never know when
  71.  
  72. an I/O error will come along and
  73.  
  74. swallow your last three revisions
  75.  
  76. of PACLIFTER.  And you never know when
  77.  
  78. you will find out you are on the
  79.  
  80. wrong track.  You may decide that all
  81.  
  82. of your work since the sixth revision
  83.  
  84. was wasted.  If you can't find your
  85.  
  86. sixth revision, ALL your work was
  87.  
  88. wasted.
  89.